package com.kun.mapper.master.custom;

import org.apache.ibatis.annotations.Param;

import com.kun.entity.Comment;
import com.kun.mapper.master.MasterCommentMapper;
/**
 * @description: 
 * @author: KM
 * 2018年4月11日 下午3:32:35
 */
public interface CommentMapperWCustom extends MasterCommentMapper{
	/**
	 * 根据主键id让SonComments +1
	 * */
	int updateSonCommentsByParmaryKey(Integer id);
	
	/**
	 * 根据主键id让likes 增减
	 * */
	int updateLikesByParmaryKey(@Param("id") int id,@Param("number") int number);
	
	int insertSelectiveReturnKey(Comment record);
}
